package mazeviejuno;

public class Maze {
	private int width = 1;
	private int height = 1;
	private Map map;
	
	public Maze(int width, int height) {
		this.width = width;
		this.height = height;
	}
	
	public void generate() {
		this.map = new Map(this.width,this.height);
		
		Cell currentCell;
		while((currentCell = this.map.getNextFreeCell()) != null) {
			while ((currentCell = currentCell.goToNextCell(this.map)) != null) {}
		}
	}

	public int getWidth() {
		return this.width;
	}
	public int getHeight() {
		return this.height;
	}
	public Map getMap() {
		return this.map;
	}
	
	
}
